package otl;

import processing.core.*;
import processing.data.*;

import de.fhpotsdam.unfolding.UnfoldingMap;


/*
 * The class that handles all the Map area stuff 
 * */
@SuppressWarnings("serial")
public class MapData extends PApplet {
	//map area will have
	//background map / base images
	//and the Line
	Line line;

	PApplet parent; // The parent PApplet that we will render ourselves onto
	UnfoldingMap map; //the map that this data will be associated with
	
	
	MapData(PApplet p, UnfoldingMap m) {
		//println("building new mapArea");
		parent = p;
		map = m;
	}
	
	void mapInit(Table sTable, Table pTable){
		//println("initializing maparea");
		buildLine(sTable,pTable);
	}
	
	
	public void drawMapData(){
		//println("in mapArea's display...");
		line.drawLine();
		
	}
	
	private void buildLine(Table sTable, Table pTable){
		line = new Line(map,parent,sTable,pTable);
		
	}
}
